<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>线上门市统计</h2>

	</div>
    <div class="tools">
            <form action="{:U()}" method="post">
                选择时间：
                <input type="text" value="{$begin}" name="time_start" class="date" style="width:80px;" onclick="laydate()"> - <input type="text" value="{$end}" name="time_end" class="date" style="width:80px;" onclick="laydate()">
                <span class="buttons">
                    <input type="submit"  id="submit" class="btn" value="开始查询">
                </span>
            </form>
    </div>

	<!-- 数据列表 -->
	<div class="data-table">
        <div class="data-table table-striped">
<table class="">
    <thead>
        <tr>
		<th class="">线上门市</th>
        <th class="">建单</th>
		<th class="">微信</th>
        <th class="">手机</th>
		<th class="">邀约</th>
        <th class="">邀约率</th>
		<th class="">进店</th>
        <th class="">进店率</th>
		<th class="">未到店</th>
        <th class="">未到店率</th>
		<th class="">流失</th>
        <th class="">流失率</th>
        <th class="">线上成交</th>
        <th class="">线下成交</th>
		<th class="">总成交</th>
        <th class="">成交率</th>
        <th class="">套系价格</th>
        <th class="">每单均价</th>
		</tr>
    </thead>
    <tbody>
	<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
			<td>{$vo.name}</td>
			<td>{$vo.jd}</td>
            <td>{$vo.qq}</td>
            <td>{$vo.phone}</td>
            <td>{$vo.yytime}</td>
            <td><?php echo number_format($vo['yytime']/$vo['jd'],2)*100; ?>%</td>
			<td>{$vo.jindtime}</td>
            <td><?php echo number_format($vo['jindtime']/$vo['yytime'],2)*100; ?>%</td>
			<td>{$vo.wddtime}</td>
            <td><?php echo number_format($vo['wddtime']/$vo['yytime'],2)*100; ?>%</td>
            <td>{$vo.lstime}</td>
            <td><?php echo number_format($vo['lstime']/$vo['yytime'],2)*100; ?>%</td>
            <td>{$vo.xscj}</td>
            <td>{$vo.xxcj}</td>
            <td>{$vo.zcj}</td>
            <td><?php echo number_format($vo['zcj']/$vo['yytime'],2)*100; ?>%</td>
            <td>{$vo.setmoney}</td>
            <td><?php echo number_format($vo['setmoney']/$vo['zcj'],0); ?></td>
			
		</tr>
		</volist>
		<else/>
		<td colspan="16" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
        <tr>
			<td style="background-color:#51D0CA;">总计</td>
			<td style="background-color:#51D0CA;">{$zj.jd}</td>
            <td style="background-color:#51D0CA;">{$zj.qq}</td>
            <td style="background-color:#51D0CA;">{$zj.phone}</td>
            <td style="background-color:#51D0CA;">{$zj.yytime}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['yytime']/$zj['jd'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;">{$zj.jindtime}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['jindtime']/$zj['yytime'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;">{$zj.wddtime}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['wddtime']/$zj['yytime'],2)*100; ?>%</td>
            <td style="background-color:#51D0CA;">{$zj.lstime}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['lstime']/$zj['yytime'],2)*100; ?>%</td>
            <td style="background-color:#51D0CA;">{$zj.xscj}</td>
            <td style="background-color:#51D0CA;">{$zj.xxcj}</td>
            <td style="background-color:#51D0CA;">{$zj.zcj}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['zcj']/$zj['yytime'],2)*100; ?>%</td>
            <td style="background-color:#51D0CA;">{$zj.setmoney}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['setmoney']/$zj['zcj'],0); ?></td>
			
		</tr>
	</tbody>
    </table>

        </div>
    </div>
    <div class="page">

    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    
</block>
